package com.shanyi.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shanyi.dao.entity.TravelAddressDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @Author shanyi
 * @Date 2023/2/17 15:25
 */
@Mapper
public interface TravelAddressDetailMapper extends BaseMapper<TravelAddressDetailEntity> {
    @Update("UPDATE travel_address_detail SET visit_count = visit_count + 1 WHERE city_code = #{cityCode}")
    void addCount(@Param("cityCode") String cityCode);
}
